import request from '@/router/axios';

// 本年新增潜在项目分析
export const potentialAnalyse = () => {
  return request({
    url: '/api/hg-public/hg_project/potentialProject/analyse',
    method: 'get'
  })
}

// 本年新增项目分析
export const projectAnalyze = params => {
  return request({
    url: '/api/hg-public/projectControl/projectAnalyze',
    method: 'get',
    params
  })
}

// 项目延期分析
export const postponeAnalyze = params => {
  return request({
    url: '/api/hg-public/projectControl/postponeAnalyze',
    method: 'get',
    params
  })
}

// 本年项目问题分布
export const problemAnalyze = params => {
  return request({
    url: '/api/hg-public/projectControl/problemAnalyze',
    method: 'get',
    params
  })
}

// 本年工程变更分析
export const changeAnalyze = params => {
  return request({
    url: '/api/hg-public/projectControl/changeAnalyze',
    method: 'get',
    params
  })
}

// 本年质量分析
export const quaAnalyseYear = () => {
  return request({
    url: '/api/hg-quality/procreate/quaAnalyseYear',
    method: 'get'
  })
}
// 协作事项
export const getYearDeptCount = () => {
  return request({
    url: '/api/hg-public/contactlist/getYearDeptCount',
    method: 'get'
  })
}
